.class public Lcom/waiqin365/lightapp/visit/b/bg;
.super Landroid/widget/BaseAdapter;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public a:Lcom/waiqin365/lightapp/visit/b/bi;

.field public b:Lcom/waiqin365/lightapp/visit/b/bj;

.field public c:Lcom/waiqin365/lightapp/visit/b/bk;

.field private d:Ljava/util/ArrayList;

.field private e:Landroid/content/Context;

.field private f:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->f:Z

    sget-object v0, Lcom/waiqin365/lightapp/visit/b/bk;->b:Lcom/waiqin365/lightapp/visit/b/bk;

    iput-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->c:Lcom/waiqin365/lightapp/visit/b/bk;

    iput-object p2, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->e:Landroid/content/Context;

    return-void
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/visit/b/bi;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->a:Lcom/waiqin365/lightapp/visit/b/bi;

    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/visit/b/bj;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->b:Lcom/waiqin365/lightapp/visit/b/bj;

    return-void
.end method

.method public a(Lcom/waiqin365/lightapp/visit/b/bk;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->c:Lcom/waiqin365/lightapp/visit/b/bk;

    return-void
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    return-void
.end method

.method public a(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->f:Z

    return-void
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    goto :goto_0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 8

    const/4 v3, 0x0

    const/4 v7, 0x0

    const/16 v6, 0x8

    if-nez p2, :cond_1

    new-instance v1, Lcom/waiqin365/lightapp/visit/b/bl;

    invoke-direct {v1, p0, v3}, Lcom/waiqin365/lightapp/visit/b/bl;-><init>(Lcom/waiqin365/lightapp/visit/b/bg;Lcom/waiqin365/lightapp/visit/b/bh;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->e:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v2, 0x7f030224

    invoke-virtual {v0, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c0af8

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->a:Landroid/widget/TextView;

    const v0, 0x7f0c0afa

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0afb

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0af7

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->d:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0afc

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->e:Landroid/widget/ImageView;

    const v0, 0x7f0c0aff

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    const v0, 0x7f0c0b00

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    const v0, 0x7f0c0afd

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    const v0, 0x7f0c0af9

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->i:Landroid/widget/LinearLayout;

    const v0, 0x7f0c0afe

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, v1, Lcom/waiqin365/lightapp/visit/b/bl;->j:Landroid/widget/LinearLayout;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    move-object v2, v1

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bf;

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->b:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bf;->d:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v1, v0, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    if-eqz v1, :cond_0

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->c:Landroid/widget/TextView;

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/b/bg;->e:Landroid/content/Context;

    const v4, 0x7f0807d5

    invoke-virtual {v3, v4}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, v0, Lcom/waiqin365/lightapp/visit/b/bf;->f:Ljava/util/ArrayList;

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v4, v7

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->a:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bf;->b:Ljava/lang/String;

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-lez p1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    add-int/lit8 v3, p1, -0x1

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/bf;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bf;->a:Ljava/lang/String;

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bf;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->c:Lcom/waiqin365/lightapp/visit/b/bk;

    sget-object v3, Lcom/waiqin365/lightapp/visit/b/bk;->b:Lcom/waiqin365/lightapp/visit/b/bk;

    if-ne v1, v3, :cond_4

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    add-int/lit8 v1, p1, 0x1

    iget-object v3, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    add-int/lit8 v3, v3, -0x1

    if-gt v1, v3, :cond_3

    iget-object v3, v0, Lcom/waiqin365/lightapp/visit/b/bf;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    add-int/lit8 v4, p1, 0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/visit/b/bf;

    iget-object v1, v1, Lcom/waiqin365/lightapp/visit/b/bf;->a:Ljava/lang/String;

    invoke-virtual {v3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_3

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    :goto_2
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setTag(Ljava/lang/Object;)V

    iget-object v0, v2, Lcom/waiqin365/lightapp/visit/b/bl;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2

    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bl;

    move-object v2, v0

    goto/16 :goto_0

    :cond_2
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_1

    :cond_3
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    goto :goto_2

    :cond_4
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->e:Landroid/widget/ImageView;

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    invoke-virtual {v1, v7}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/visit/b/bf;->h:Z

    if-eqz v1, :cond_6

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    const v3, 0x7f020129

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    :goto_3
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v0}, Landroid/widget/LinearLayout;->setTag(Ljava/lang/Object;)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->i:Landroid/widget/LinearLayout;

    invoke-virtual {v1, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne p1, v1, :cond_7

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    :goto_4
    iget-boolean v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->f:Z

    if-nez v1, :cond_5

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->d:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->d:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ne p1, v1, :cond_5

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v7}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->g:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    :cond_5
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setVisibility(I)V

    goto/16 :goto_2

    :cond_6
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->f:Landroid/widget/ImageView;

    const v3, 0x7f02012d

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageResource(I)V

    goto :goto_3

    :cond_7
    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->h:Landroid/view/View;

    invoke-virtual {v1, v6}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, v2, Lcom/waiqin365/lightapp/visit/b/bl;->j:Landroid/widget/LinearLayout;

    invoke-virtual {v1, v7}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_4
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/b/bg;->a:Lcom/waiqin365/lightapp/visit/b/bi;

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bf;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->a:Lcom/waiqin365/lightapp/visit/b/bi;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/visit/b/bi;->a(Lcom/waiqin365/lightapp/visit/b/bf;)V

    goto :goto_0

    :pswitch_2
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/bf;

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->b:Lcom/waiqin365/lightapp/visit/b/bj;

    if-eqz v1, :cond_0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/visit/b/bg;->b:Lcom/waiqin365/lightapp/visit/b/bj;

    invoke-interface {v1, v0}, Lcom/waiqin365/lightapp/visit/b/bj;->a(Lcom/waiqin365/lightapp/visit/b/bf;)V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c0af9
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
